home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 23 / AACD 23.iso / AACD / Online / opennap / hashlist.h < prev    next >
C/C++ Source or Header  |  2001-06-08  |  691b  |  27 lines

  1. /* Copyright (C) 2000 drscholl@users.sourceforge.net
  2.    This is free software distributed under the terms of the
  3.    GNU Public License.  See the file COPYING for details.
  4.  
  5.    $Id: hashlist.h,v 1.3 2000/11/28 23:55:15 drscholl Exp $ */
  6.  
  7. #define MAGIC_HASHLIST 0xdb983112
  8.  
  9. struct hashlist
  10. {
  11. #if DEBUG
  12.     u_int    magic;
  13. #endif
  14.     void   *key;
  15.     int     count;
  16.     LIST   *list;
  17. };
  18.  
  19. typedef struct hashlist hashlist_t;
  20.  
  21. hashlist_t *hashlist_add (HASH * h, void *key, void *data);
  22. int hashlist_remove (HASH * h, void *key, void *data);
  23. int hashlist_count (HASH *h, void *key);
  24. LIST *hashlist_lookup (HASH *h, void *key);
  25. void hashlist_free (hashlist_t *);
  26. int hashlist_validate (hashlist_t *);
  27.